]> dgit.raspbian.org Git - gnome-shell.git/commit
perf-tool: Allow to run as a Wayland compositor
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 21 Jan 2020 10:05:58 +0000 (11:05 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 27 Jan 2020 13:43:06 +0000 (13:43 +0000)
commit68598f7c0c1119eba08f4eabcb3d1ccf5d00f3d4
tree90d9d4cbebfb5b08505204a3a8acdbc19b3f017f
parentee7e62c9c8854ec5e0936ba0f1b49e8aed07c265
perf-tool: Allow to run as a Wayland compositor

`gnome-shell-perf-tool` is initially designed to run on X11, using the
`--replace` option which does not work when gnome-shell is a Wayland
compositor.

A solution would be to run `gnome-shell-perf-tool` in place of just
`gnome-shell` to run the entire perf session under Wayland, but the
script `gnome-shell-perf-tool` does not spawn `gnome-shell` as a Wayladn
compositor, so that fails as well.

Add a `--wayland` option to `gnome-shell-perf-tool` so that it can
optionally spawn gnome-shell as a Wayland compositor so the whole perf
tool can be starred from a console with:

```
  $ dbus-run-session -- gnome-shell-perf-tool --wayland
```

Alternatively, for testing purposes, it can also be started nested with:

```
  $ dbus-run-session -- gnome-shell-perf-tool --nested
```

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/2139
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/941
src/gnome-shell-perf-tool.in